import 'package:flutter/material.dart';

class PageviewDemo extends StatefulWidget {
  const PageviewDemo({super.key});

  @override
  State<PageviewDemo> createState() => _PageviewDemoState();
}

class _PageviewDemoState extends State<PageviewDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('page demo'),
        ),
        body: Center(
          child: Column(
            children: [
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageview_page');
                },
                child: Text('pageview创建demo'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewbuild_page');
                },
                child: Text('pageviewbuild创建demo'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewfull_page');
                },
                child: Text('pageview fullpage创建demo'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewswiper_page');
                },
                child: Text('pageview创建轮播图'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewswiper_page02');
                },
                child: Text('pageview创建轮播图，轮播小点'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewautoswiper_page03');
                },
                child: Text('pageview轮播图，轮播小点，自动轮播'),
              ),
              ElevatedButton(
                onPressed: () {
                  Navigator.pushNamed(context, 'pageviewkeepalive_page04');
                },
                child: Text('pageview 缓存'),
              ),
            ],
          ),
        ));
  }
}
